
import request from '../utils/request.js'

//获取菜谱列表
export const getListData=(data)=>{
    return request.post('/admin/findAllMenu',{data})
}

//搜索
export const searchData=(data)=>{
    return request.post('/admin/searchMenu',{data})
}

//修改
export const updateMenu=(data)=>{
    console.log(data);
    return request.post('/admin/updateMenu',{data})
}

//根据id获取菜品
export const getMenuById=(data)=>{
    return request.post('/admin/menuDetail',{data})
}